/*
 * MouseClickHandler.h
 *
 *  Created on: Nov 25, 2010
 *      Author: Thanh
 */

#ifndef MOUSECLICKHANDLER_H_
#define MOUSECLICKHANDLER_H_

#include <vector>
#include <iostream>

using namespace std;

class ColorObject {
public:
	int id;
	int color[3];
};

class MouseClickHandler {
public:
	MouseClickHandler();
	virtual ~MouseClickHandler();

	void addObject(int id, int* color);
	void getColor(int id, int* color);
	int getObject(int *color);
	int getObject(unsigned char *color);
	void clear();

private:
	vector<ColorObject> __objects;
	int __color_index;
};

#endif /* MOUSECLICKHANDLER_H_ */
